
ANDROID_NDK=/home/laptop/Downloads/android-ndk-r26d-linux/android-ndk-r26d

if [ ! -d build ];then
    mkdir build
fi

cd build
# rm -rf *
cmake .. -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI="arm64-v8a" -DANDROID_NATIVE_API_LEVEL=android-26 -DCMAKE_INSTALL_PREFIX=./install
make install -j4

adb push test/honorv20/device_info /data/local/tmp
adb push test/honorv20/demo /data/local/tmp
adb push test/honorv20/cnrt_test /data/local/tmp
adb push test/honorv20/neon_test /data/local/tmp

adb shell /data/local/tmp/demo
adb shell /data/local/tmp/device_info
adb shell /data/local/tmp/neon_test